#include <string>
#include <vector>
using namespace std;
class CQueryAndModify
{
    string foundMiscreant(std::vector<std::string> people)
    {
        for(auto& iter : people)
        {
            if(iter == "Don")
            {
                sendAlert();
                return "Don";
            }
            if(iter == "Jon")
            {
                sendAlert();
                return "Jon";
            }
        }
        return "";
    }
    void sendAlert(){}
    void someLaterCode(std::string) {}
     void checkSecurity(std::vector<std::string> people) 
     {
         std::string found = foundMiscreant(people);
         someLaterCode(found);
       }
};
